<%-------------------------------------------------------------------
 * 页面名称：printPayPaper.jsp
 * 功能描述：付款单
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<% 
String path = request.getContextPath();
%>
<title>付款单</title>
<style>
body,td{
font-size:12px;

}
.STYLE1 {color: #FF0000}
</style>
<script language="JavaScript">
   document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
   document.onselectstart=new Function("event.returnValue=false;"); //禁止先择,也就是无法复制
</script>
<script language="javascript" type="text/javascript" src='<%=path%>/js/vnv/commonForManage.js' charset="UTF-8"></script>
<script type='text/javascript' src='<%=path%>/js/vnv/commonForCnAmount.js'></script>
<script type='text/javascript' src='<%=path%>/js/vnv/tomoney.js'></script>
<script language="javascript" type="text/javascript" src='<%=path%>/js/vnv/commonForMutual.js' charset="UTF-8"></script>
</head>

<body>
<br />
<table width="642" height="519" border="0" align="center" cellpadding="10" cellspacing="0">
  <tr>
    <td valign="top" background="<%=path%>/images/printpaper/bg.gif"><br />
      
      <table width="100%" border="0" cellspacing="0" cellpadding="8">
      <tr>
        <td align="center">&nbsp;</td>
      </tr>
    </table>
      <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#000000">
        <tr>
          <td height="70" colspan="16" align="center" bgcolor="#FFFFFF"><table width="100%" height="51" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="28%" align="center"></td>
              <td width="48%" align="center"></td>
              <td width="24%" align="right">付字第 <span class="STYLE1"><bean:write name="bean" property="voucherCode"/></span>　号
				            <br/>凭证第 <span class="STYLE1"></span>　号
	      </td>
            </tr>
          </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
              <tr>
                <td align="center"><bean:write name="bean" property="updateDate"/></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td width="15%" height="20" align="right" bgcolor="#FFFFFF"><strong>付款方</strong><strong>名称</strong></td>
          <td width="35%" bgcolor="#FFFFFF"><bean:write name="bean" property="fromAccountName"/></td>
          <td width="15%" align="right" bgcolor="#FFFFFF"><strong>收款方</strong><strong>名称</strong></td>
          <td width="35%" colspan="13" bgcolor="#FFFFFF"><bean:write name="bean" property="toAccountName"/></td>
        </tr>
        <tr>
          <td height="20" align="right" bgcolor="#FFFFFF" rowspan="2"><strong>支付账号</strong></td>
          <td bgcolor="#FFFFFF" rowspan="2"><bean:write name="bean" property="fromAccountEmail"/></td>
          <td align="right" bgcolor="#FFFFFF"><strong>收款方账号</strong><strong></strong></td>
          <td colspan="13" bgcolor="#FFFFFF"><bean:write name="bean" property="directCardNo"/></td>
        </tr>
        <tr>
          <td height="20" align="right" bgcolor="#FFFFFF"><strong>开户银行</strong></td>
          <td colspan="15" bgcolor="#FFFFFF"><bean:write name="bean" property="directBank"/>(<bean:write name="bean" property="bankName"/>)</td>
        </tr>
        <tr>
          <td colspan="3" bgcolor="#FFFFFF"><strong>交易金额：</strong><span id="upperAmount"></span></td>
          <td colspan="13" bgcolor="#FFFFFF"></td>
        </tr>
        <tr>
          <td colspan="3" bgcolor="#FFFFFF"><strong>手续费：</strong><span id="upperFee"></span></td>
          <td colspan="13" bgcolor="#FFFFFF"></td>
        </tr>
        <tr>
          <td colspan="3" rowspan="2" bgcolor="#FFFFFF"><strong>实际交易额（<bean:write  name="bean" property="payMode" />）：</strong><span  id="upperRealTrasAmount"></span></td>        
          <td bgcolor="#FFFFFF">百</td>
          <td bgcolor="#FFFFFF">十</td>
          <td bgcolor="#FFFFFF">亿</td>
          <td bgcolor="#FFFFFF">千</td>
          <td bgcolor="#FFFFFF">百</td>
          <td bgcolor="#FFFFFF">十</td>
          <td bgcolor="#FFFFFF">万</td>
          <td bgcolor="#FFFFFF">千</td>
          <td bgcolor="#FFFFFF">百</td>
          <td bgcolor="#FFFFFF">十</td>
          <td bgcolor="#FFFFFF">元</td>
          <td bgcolor="#FFFFFF">角</td>
          <td bgcolor="#FFFFFF">分</td>
        </tr>
        <tr>
        	<logic:iterate id="lowerRealTrasAmount" name="bean" property="lowerRealTrasAmount">
        		<td bgcolor="#FFFFFF"><bean:write name="lowerRealTrasAmount"/></td>
        	</logic:iterate>
        </tr>
      <tr>
        <td width="15%" height="40" align="right" bgcolor="#FFFFFF"><strong>用途</strong></td>
        <td colspan="15" bgcolor="#FFFFFF"><bean:write name="bean" property="purpose"/></td>
      </tr>
      <tr>
        <td colspan="16" height="40" align="center" bgcolor="#FFFFFF"><strong>收.付款方自愿委托支付网站进行网络交易的资金划拨</strong></td>
      </tr>
      <tr>
        <td height="30" colspan="16" align="center" bgcolor="#FFFFFF">
        	
        		<table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
        			<tr>
        				<logic:iterate id="persons" indexId="indexIds" name="bean" property="person">
            				<td>
            					<logic:iterate id="person" indexId="indexId" name="persons">
            						<bean:write name="person"/>
            					</logic:iterate>
            				</td>
            			</logic:iterate>
       				</tr>
       			</table>
       		
			<table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
       
          		<tr>
            		<td width="40">&nbsp;</td>
            		<td width="155">&nbsp;</td>
            		<td width="155">&nbsp;</td>
            		<td width="155">&nbsp;</td>
            		<td></td>
            	</tr>
        	</table>
       	 </td>
       </tr>
    </table>
    <div id="Noprint">
      <table width="100%" height="48" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="right"><a href="javascript:printit();"><img src="<%=path%>/images/printpaper/print.gif" width="90" height="40" border="0" /></a></td>
        </tr>
      </table>
    </div>  
      </td>
  </tr>
</table>
<script language="javascript">
	var upperAmount="<bean:write name='bean' property='amount'/>";
	var upperFee="<bean:write name='bean' property='fee'/>";
	var upperRealTrasAmount="<bean:write name='bean' property='realTrasAmount'/>";
	
	getObj("upperAmount").innerText=getChineseCurrencyString(upperAmount);
	getObj("upperFee").innerText=getChineseCurrencyString(upperFee);
	getObj("upperRealTrasAmount").innerText=getChineseCurrencyString(upperRealTrasAmount);
	

</script>
</body>
</html>
